package com.example.leetcode.search;

import com.example.leetcode.search.comon.SearchUtils;

class Solution275 {
    public int hIndex(int[] citations) {
        return SearchUtils.hIndex(citations);
    }
}

public class leetcode275 {
    public static void main(String[] args) {
        Solution275 solution275 = new Solution275();
        int[] citations = {0, 1, 3, 5, 6};
        int[] citations1 = {1, 2, 100};
        int[] citations2 = {100, 99, 98};
        int[] citations3 = {0, 1};
        int[] citations4 = {0};
        int[] citations5 = {1, 4, 7, 9};
        System.out.println(solution275.hIndex(citations));
        System.out.println(solution275.hIndex(citations1));
        System.out.println(solution275.hIndex(citations2));
        System.out.println(solution275.hIndex(citations3));
        System.out.println(solution275.hIndex(citations4));
        System.out.println(solution275.hIndex(citations5));
    }
}
